package us.kg.kotoriforest.iocxml.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 学生类
 *
 * @author Kotori rotroutine@163.com
 * @since 2024/12/20
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Component
public class Student {
    private Integer sid;
    private String name;
    Map<String, Teacher> teachers;

    public void addTeacher(Teacher teacher) {
        if (teacher != null) {
            System.out.println("add...");
        }
    }
}
